from ronglian_sms_sdk import SmsSDK

accId = '2c94811c9035ff9f01928e13b57d764f'
accToken = '7883b3322e774dc98bfc6ad7026fe995'
appId = '2c94811c9035ff9f01928e13b7077656'

#发送短信 参数 phone 手机号 code 验证码
def send_message(phone,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'#测试只能使用模版1
    mobile = phone#手机号
    datas = (code, )#验证码
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)
    return  resp

#send_message("18610982957","1234")